import java.awt.*;
import javax.swing.*;

/**
 * Creates window that can be moved, resized, and closed by the user.
 * Window used to view/manipulate animation.
 * 
 * @author jianweigan, Thomas Marmaduke
 */
public class Main {

	public static final Dimension SIZE = new Dimension(800, 600);
	public static final String TITLE = "Flocks";

	public static void main(String args[]) {
		Applet app = new Applet();
		app.init(SIZE);

		JFrame frame = new JFrame(TITLE);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().add(app, BorderLayout.CENTER);
		frame.pack();
		frame.setVisible(true);

		app.start();
	}
}
